<%-- 
    Document   : list
    Created on : Dec 13, 2008, 10:26:33 PM
    Author     : mamat-dev
--%>

<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>View Data</title>
    </head>
    <body>
        <h2>List Customer</h2>
        <table border="1" width="100%">
            <thead>
                <tr>
                    <th>First Name</th>
                    <th>Lase Name</th>
                    <th>Age</th>
                    <th>Action</th>
                </tr>
            </thead>

            <c:forEach items="${rows}" var="rows"  varStatus="status">
                <tr>
                    <td>
                        <a href="detil.htm?id=${rows.id}">${rows.firstname}</a>
                    </td>
                    <td> ${rows.lastname}</td>
                    <td> ${rows.age}</td>
                    <td><a href="edit.htm?id=${rows.id}">Edit</a>|<a href="delete.htm?id=${rows.id}">Delete</a></td>
                </tr>
            </c:forEach>

        </table>
        <div>
            <a href="index.htm">Index</a>|<a href="list.htm">List</a>|<a href="add.htm">Add</a>
        </div>
    </body>
</html>
